<%@ page contentType="text/html; charset=UTF-8" language="java"
	pageEncoding="UTF-8"%>
<%@ include file="/corp/include/corptaglibs.jsp"%>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title></title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="-1000">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<LINK href="${ctx }/corp/css/css.css" type=text/css rel=stylesheet>
	
		<script type='text/javascript'
		src='<%=request.getContextPath()%>/dwr/util.js'></script>
	<script type='text/javascript'
		src='<%=request.getContextPath()%>/dwr/engine.js'></script>
	<script type='text/javascript'
		src='<%=request.getContextPath()%>/dwr/interface/sysDwr.js'></script>
	<style type="text/css">
	<!--
.displaystrong{
font-weight:600;

}
#Layer1 {
	position:absolute;
	left:80px;
	top:35px;
	width:23px;
	height:23px;
	z-index:1;
	font-weight:600;
	font-size:12px;
	
}
#Layer2 {
	position:absolute;
	left:80px;
	top:145px;
	width:700px;
	height:350px;
	z-index:2;
	background:#F4FAFC;
	display:none;
	cursor:hand;
}

.STYLE4 {font-size: 10pt}
.tb_1 {
	BACKGROUND-COLOR: #ffffff
}
/*普通标题*/
.h3
  {
  font-size:14px; 
  font-weight: bold;
  color: #303030;
 }
/*文字*/
.h4
 {
 font-weight:200;font-size:13px;cursor:pointer;
}
.h5 
 {
  font-size:13px;color: #B84F01; 

}


	-->
	</style>

 
</head>
<script>
 function displaycontent(publicationid){ 
 document.getElementById("Layer2").style.display="block";
   document.getElementById("Layer2").style.top=145;
  document.getElementById("Layer2").style.left=60;
   document.getElementById("Layer2").style.width=700;
    document.getElementById("Layer2").style.height=350
  document.getElementById("Layer2").innerHTML=document.getElementById(publicationid).innerHTML;
}
function closelayer(flag){
  document.getElementById("Layer2").style.display="none";
  if(flag==true)
  window.document.location.reload();

}
//还原
function restyle(url){ 
     document.getElementById("Layer2").style.display="block";
// alert(url);
   document.getElementById("Layer2").style.top=145;
  document.getElementById("Layer2").style.left=60;
   document.getElementById("Layer2").style.width=700;
    document.getElementById("Layer2").style.height=350
  var str="<iframe   name=\"modifyiframe\" width=\"100%\" src=\""+url+"\" frameborder=\"0\" align=\"middle\" hspace=\"0\" vspace=\"0\"  height=\"100% \" />";
  document.getElementById("Layer2").innerHTML=str;  
}
// 彻底删除
function realdelete(url){
    document.getElementById("Layer2").style.display="block";
// alert(url);
   document.getElementById("Layer2").style.top=145;
  document.getElementById("Layer2").style.left=60;
   document.getElementById("Layer2").style.width=700;
    document.getElementById("Layer2").style.height=350
  var str="<iframe   name=\"modifyiframe\" width=\"100%\" src=\""+url+"\" frameborder=\"0\" align=\"middle\" hspace=\"0\" vspace=\"0\"  height=\"100% \" />";
  document.getElementById("Layer2").innerHTML=str;  
}
//多项选择还原
function morerestyle(){
var url='${ctx }/corp/publication.do?m=morecontentrecyclerecover&flag=1';                

url+=geturl();
document.getElementById("Layer2").style.display="block";
// alert(url);
   document.getElementById("Layer2").style.top=145;
  document.getElementById("Layer2").style.left=60;
   document.getElementById("Layer2").style.width=700;
    document.getElementById("Layer2").style.height=350
  var str="<iframe   name=\"modifyiframe\" width=\"100%\" src=\""+url+"\" frameborder=\"0\" align=\"middle\" hspace=\"0\" vspace=\"0\"  height=\"100% \" />";
  document.getElementById("Layer2").innerHTML=str;  
}
//多项选择删除
function morerealdelete(){
var url='${ctx }/corp/publication.do?m=morecontentrecycledelete&flag=1';              

url+=geturl();
document.getElementById("Layer2").style.display="block";
// alert(url);
   document.getElementById("Layer2").style.top=145;
  document.getElementById("Layer2").style.left=60;
   document.getElementById("Layer2").style.width=700;
    document.getElementById("Layer2").style.height=350
  var str="<iframe   name=\"modifyiframe\" width=\"100%\" src=\""+url+"\" frameborder=\"0\" align=\"middle\" hspace=\"0\" vspace=\"0\"  height=\"100% \" />";
  document.getElementById("Layer2").innerHTML=str;  
}
function geturl(){
var str=document.getElementsByName("pubid");
var string="";
if(str.length>0)
for(var i=0;i<str.length;i++){
  if(document.getElementsByName("pubid")[i].checked==true){
    string+=str[i].value;
  }
}
return string;
}

//以下是控制层的拖动



self.onError=null;                              
currentX = currentY = 0;                               
whichIt = null;                                         
lastScrollX = 0; lastScrollY = 0;                              
NS = (document.layers) ? 1 : 0;                             
IE = (document.all) ? 1: 0;                              
<!-- STALKER CODE -->                              
function heartBeat() {                              
if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }                             if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }           
if(diffY != lastScrollY) {            
percent = .1 * (diffY - lastScrollY);    
if(percent > 0) percent = Math.ceil(percent); 
else percent = Math.floor(percent);  
if(IE) document.all.Layer2.style.pixelTop += percent;  
if(NS) document.Layer2.top += percent;                 
lastScrollY = lastScrollY + percent;      
}                       
if(diffX != lastScrollX) {       
percent = .1 * (diffX - lastScrollX);     
if(percent > 0) percent = Math.ceil(percent);       
else percent = Math.floor(percent);                   
if(IE) document.all.Layer2.style.pixelLeft += percent;        
if(NS) document.Layer2.left += percent;       
lastScrollX = lastScrollX + percent;                     
}	                          
}                         
<!-- /STALKER CODE -->              
<!-- DRAG DROP CODE -->              
function checkFocus(x,y) {         
stalkerx = document.Layer2.pageX;     
stalkery = document.Layer2.pageY;                        
stalkerwidth = document.Layer2.clip.width;              
stalkerheight = document.Layer2.clip.height;                         
if( (x > stalkerx && x < (stalkerx+stalkerwidth)) && (y > stalkery && y < (stalkery+stalkerheight))) return true;                      
else return false;        
}                     
function grabIt(e) {            
if(IE) {                            
whichIt = event.srcElement; 
while (whichIt.id.indexOf("Layer2") == -1) {    
whichIt = whichIt.parentElement;                           
if (whichIt == null) { return true; }         
 }                            
whichIt.style.pixelLeft = whichIt.offsetLeft;                              
whichIt.style.pixelTop = whichIt.offsetTop;                          
currentX = (event.clientX + document.body.scrollLeft);                       
currentY = (event.clientY + document.body.scrollTop); 	                      
} else {                             
window.captureEvents(Event.MOUSEMOVE);    
if(checkFocus (e.pageX,e.pageY)) {                            
whichIt = document.Layer2;                              
stalkerTouchedX = e.pageX-document.Layer2.pageX;      
StalkerTouchedY = e.pageY-document.Layer2.pageY;          
}                              
}                            
return true;                        
}                            
function moveIt(e) {               
if (whichIt == null) { return false; }       
if(IE) {                             
newX = (event.clientX + document.body.scrollLeft);                           
newY = (event.clientY + document.body.scrollTop);                
distanceX = (newX - currentX);    distanceY = (newY - currentY);   
currentX = newX;    currentY = newY;                       
whichIt.style.pixelLeft += distanceX;                          
whichIt.style.pixelTop += distanceY;                      
if(whichIt.style.pixelTop < document.body.scrollTop) whichIt.style.pixelTop = document.body.scrollTop;    if(whichIt.style.pixelLeft < document.body.scrollLeft) whichIt.style.pixelLeft = document.body.scrollLeft; if(whichIt.style.pixelLeft > document.body.offsetWidth - document.body.scrollLeft - whichIt.style.pixelWidth - 20) whichIt.style.pixelLeft = document.body.offsetWidth - whichIt.style.pixelWidth - 20;
if(whichIt.style.pixelTop > document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5) whichIt.style.pixelTop = document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5;  
event.returnValue = false;  
} else {   
whichIt.moveTo(e.pageX-StalkerTouchedX,e.pageY-StalkerTouchedY); 
if(whichIt.left < 0+self.pageXOffset) whichIt.left = 0+self.pageXOffset; 
if(whichIt.top < 0+self.pageYOffset) whichIt.top = 0+self.pageYOffset;  
if( (whichIt.left + whichIt.clip.width) >= (window.innerWidth+self.pageXOffset-17)) whichIt.left = ((window.innerWidth+self.pageXOffset)-whichIt.clip.width)-17; 
if( (whichIt.top + whichIt.clip.height) >= (window.innerHeight+self.pageYOffset-17)) whichIt.top = ((window.innerHeight+self.pageYOffset)-whichIt.clip.height)-17; 
return false;} 
return false;  
}   
function dropIt() {     
whichIt = null;     
if(NS) window.releaseEvents (Event.MOUSEMOVE);  
return true;             
	}                     
<!-- DRAG DROP CODE -->  
if(NS) {    
window.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN);
window.onmousedown = grabIt;
window.onmousemove = moveIt; 
window.onmouseup = dropIt; 
}              
if(IE) {                     
document.onmousedown = grabIt;    
document.onmousemove = moveIt;   
document.onmouseup = dropIt;          
	}                         
if(NS || IE) action = window.setInterval("heartBeat()",1);   


</script>
<script>
 function selectall(thisid){
  var str=document.getElementsByName("pubid");
  //alert(document.getElementById(thisid).checked);
  if(document.getElementById(thisid).checked==true)
  for(var i=0;i<str.length;i++){
   document.getElementsByName("pubid")[i].checked=true;
 }
 else
 {
 for(var i=0;i<str.length;i++){
   document.getElementsByName("pubid")[i].checked=false;
 }
 }
 }
</script>
<html:base />
 
<body>
<div id="Layer2" class=Layer2 ></div>
<html:form action="publication.do" method="post"  >
<html:hidden property="m" value="list" />
<html:hidden property="publication.publicationid"  />
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
 <tr>
    <td height="10" colspan="4">&nbsp;</td>
  </tr>
  <tr>
    <td width="8%" align="right"><img src="${ctx }/corp/images/pic_shutu.gif" width="64" height="48" /></td>
    <td width="11%" align="left" valign="middle"  background="${ctx }/corp/images/pic_shutu1.gif"><span class="h3">电子书管理</span></td>
    <td colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td height="25" colspan="4">&nbsp;</td>
  </tr>
  <tr>
    <td height="25" colspan="3" ><span class="h3">&nbsp;<img src="${ctx }/corp/images/pic_biao1.gif" width="11" height="11" />&nbsp;已删除电子书内容内容列表</span></td>
	 <td width="57%" height="25"  align="right">					 
	  
						      <input type="checkbox" name="allselect" id="allselect" onclick="selectall(this.id);" />全选  
						      <input type="button" name="deleteselected" id="deleteselected" value="还原所选" onclick="morerestyle()"/>
							  <input type="button" name="deleteselected" id="deleteselected" value="彻底删除所选" onclick="morerealdelete();"/>	
							  <input type="button" name="deleteselected" id="deleteselected" value="返回" onclick="parent.closelayer(false);"/>				
	  </td>
  </tr>
</table>
<table  border="0" width="100%" cellpadding="3" cellspacing="3" align="center">
<tr><td colspan="10"><hr/></td></tr>
		   
			<c:if test="${!empty requestScope.list}">
			<c:set var="i" value="0" scope="page"/>		
			<tr>
			
			<c:forEach var="publicationpage" items="${requestScope.list}">
	 <c:if test="${i%6==0&&i!=0}">
    </tr>
	 <tr>
	</c:if>
			<td  width="110" height="105"  align="center">    
     <img src="${ctx}/${requestScope.imagepath}${requestScope.pubpath}/${requestScope.bookurl}${publicationpage.thumbpath}" width="120" height="170" />
    <input type="checkbox" value="&publicationpageid=${publicationpage.publicationpageid}&publicationid=${publicationpage.publicationid}"  name="pubid" />
     <a href="javascript:restyle('${ctx }/corp/publication.do?m=contentrecyclerecover&publicationpageid=${publicationpage.publicationpageid}&publicationid=${requestScope.publicationid}&flag=1')">还原</a>
 <a href="javascript:realdelete('${ctx }/corp/publication.do?m=contentrecycledelete&publicationpageid=${publicationpage.publicationpageid}&flag=1')"> 彻底删除</a>	</td> 
	<c:set var="i" value="${i+1}" scope="page"/>
	</c:forEach>
	<c:forEach var="num" begin="1" end="${6-i%6}">
	  <td  width="110" height="105" align="left" >  </td>
	</c:forEach>
	
	
			</tr>
		<tr><td colspan="10"><hr/></td></tr>	
</c:if>	 
  
<c:if test="${empty requestScope.list}">
  
			<tr>
			<td align="center" colspan="8">
			没有您要的数据


			<hr/>		
			</td>
			</tr>
</c:if>		

</table>
 
</html:form>
</body>
</html:html>